/**
 * merchant
 * =======================================
 * list
 * edit
 * remove
 * view
 * statusList
 * changeStatus
 * changeSort
 * batchRemove
 */

import request from '@/utils/request'

// list
export function list(data) {
  return request({
    url: '/api/uni/merchant/merchant/list',
    method: 'post',
    data
  })
}

// edit
export function edit(data) {
  return request({
    url: '/api/uni/merchant/merchant/edit',
    method: 'post',
    data
  })
}

// remove
export function remove(data) {
  return request({
    url: '/api/uni/merchant/merchant/remove',
    method: 'post',
    data
  })
}

// view
export function view(data) {
  return request({
    url: '/api/uni/merchant/merchant/view',
    method: 'post',
    data
  })
}

// statusList
export function statusList(data) {
  return request({
    url: '/api/uni/merchant/merchant/status-list',
    method: 'post',
    data
  })
}

// changeStatus
// export function changeStatus(data) {
//   return request({
//     url: '/api/uni/merchant/merchant/change-status',
//     method: 'post',
//     data
//   })
// }

// changeSort
export function changeSort(data) {
  return request({
    url: '/api/uni/merchant/merchant/change-sort',
    method: 'post',
    data
  })
}

// batchRemove
export function batchRemove(data) {
  return request({
    url: '/api/uni/merchant/merchant/batch-remove',
    method: 'post',
    data
  })
}

// -------------------------------------------------------

// pass
export function pass(data) {
  return request({
    url: '/api/uni/merchant/merchant/pass',
    method: 'post',
    data
  })
}

// reject
export function reject(data) {
  return request({
    url: '/api/uni/merchant/merchant/reject',
    method: 'post',
    data
  })
}

// cancel
export function cancel(data) {
  return request({
    url: '/api/uni/merchant/merchant/cancel',
    method: 'post',
    data
  })
}

// -------------------------------------------------------

// view image
export function viewImage(data) {
  return request({
    url: '/api/uni/merchant/merchant/view-image',
    method: 'post',
    data
  })
}
